﻿using System.Collections.Generic;
using System.Runtime.Serialization;

namespace LASLogic.BusinessLayer.DataModel
{
    /// <summary>
    /// Clase que maneja el catálogo contable
    /// </summary>
    [DataContract]
    public class AccountCatalog
    {
        #region Properties
        /// <summary>
        /// Identificador del catálogo contable
        /// </summary>
        [DataMember]
        public int AccountCatalogId { get; set; }
        /// <summary>
        /// Lista de cuentas del catalogo contable
        /// </summary>
        [DataMember]
        public List<Account> Accounts { get; set; }
        #endregion


        #region Constructor

        /// <summary>
        /// Constructor vacio
        /// </summary>
        public AccountCatalog()
        {
        }

        /// <summary>
        /// Permite crear una cuenta de catalogos
        /// </summary>
        /// <param name="accountCatalogId"></param>
        /// <param name="accounts"></param>
        public AccountCatalog(int accountCatalogId, List<Account> accounts)
        {
            AccountCatalogId = accountCatalogId;
            Accounts = accounts;
        }

        #endregion
    }
}
